

#import "UIView+Frame.h"

@implementation UIView (Frame)


- (CGFloat)dk_x {
    return self.frame.origin.x;
}

-(void)setDk_x:(CGFloat)dk_x
{

    CGRect frame = self.frame;
    frame.origin.x = dk_x;
    self.frame = frame;

}

- (CGFloat)dk_y {
    return self.frame.origin.x;
}

-(void)setDk_y:(CGFloat)dk_y
{
    
    CGRect frame = self.frame;
    frame.origin.y = dk_y;
    self.frame = frame;
    
}


- (CGFloat)dk_width {
    return self.frame.size.width;
}

-(void)setDk_width:(CGFloat)dk_width
{
    CGRect frame = self.frame;
    frame.size.width = dk_width;
    self.frame = frame;
}

- (CGFloat)dk_height {
    return self.frame.size.height;
}

-(void)setDk_height:(CGFloat)dk_height
{
    CGRect frame = self.frame;
    frame.size.height = dk_height;
    self.frame = frame;
}

-(void)setDk_centerX:(CGFloat)dk_centerX
{
    CGPoint center = self.center;
    center.x = dk_centerX;
    self.center = center;
}

-(CGFloat)dk_centerX
{
    return self.center.x;
}

-(void)setDk_centerY:(CGFloat)dk_centerY
{
    CGPoint center = self.center;
    center.y = dk_centerY;
    self.center = center;
}

-(CGFloat)dk_centerY
{
    return self.center.y;
}

@end
